// 获取assets静态资源
const getAssetsFile = (url) => {
    return new URL(`../assets/${url}`,import.meta.url).href;
};

// 获取assets静态资源Two
const getAssetsFileTwo = (url) => {
  const path = `../assets/${url}`;
  const modules = import.meta.glob("../assets/*");
  return modules[path].default;
};
 
export default {
    getAssetsFile,
    getAssetsFileTwo,
};
